#include "../H/Tipper.h"

//------------------------------------------------------------------------------
// METHOD:  Tipper::Tipper()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
Tipper::Tipper()
{
	pTipper = new DoubleSolenoid(SOLENOID_BREAKOUT_MODULE, TIPPER_SOL_CHA,TIPPER_SOL_CHB);
	UnTipRobot();
}
//------------------------------------------------------------------------------
// METHOD:  Tipper::Tipper()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
Tipper::Tipper(UINT8 sideCarModule, UINT32 TipperSolChA, UINT32 TipperSolChB)
{
	pTipper = new DoubleSolenoid(sideCarModule, TipperSolChA, TipperSolChB);
	UnTipRobot();
}
//------------------------------------------------------------------------------
// METHOD:  Tipper::~Tipper()
// Type:	Destructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
Tipper::~Tipper()
{
	// Does nothing
}
//------------------------------------------------------------------------------
// METHOD:  Tipper::TipRobot
// Type:	Method
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void Tipper::TipRobot()
{
	pTipper->Set(DoubleSolenoid::kForward);
	return;
}

//------------------------------------------------------------------------------
// METHOD:  Tipper::UnTipRobot
// Type:	Destructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void Tipper::UnTipRobot()
{
	pTipper->Set(DoubleSolenoid::kReverse);
	return;
}
